package com.huangjue.backend.controller;


import com.huangjue.backend.dto.AiReport;
import com.huangjue.backend.dto.MultiAgentMessage;
import com.huangjue.backend.entity.AgentResult;
import com.huangjue.backend.mapper.AgentProcessMapper;
import com.huangjue.backend.mapper.AgentResultMapper;
import com.huangjue.backend.service.CallAgentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/agent")
@CrossOrigin(origins = "*")
public class AgentController {

    @Autowired
    private CallAgentService callAgentService;

    @PostMapping("/getAiReport")
    public int callAgent(@RequestBody String msg) {
        return callAgentService.getAiReport("37","李小龙", "2025-10-05", "2025-10-06");
    }
}
